package duixiang;

import java.util.Scanner;

public class Ruanjiangongcheng {

	public static void main(String[] args) {
		int i;
		Scanner reader=new Scanner(System.in);
		String x=reader.nextLine();
		int len=x.length();
		char[] zu=new char[len];
		for(i=0;i<len ;i++){
		char c=x.charAt(i);
		zu[i]=c;
		String str="";
			if(c!='`'&&c!=','&&c!=' '&&c!='~'&&c!='-'){
			str+=zu[i];
			System.out.print(str);
			}
			else {
				System.out.println();
				}
			}
	}

}
